﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace GYCTOAManagementSystemNewApi.Model.Tool
{
    public static class tools
    {

        /// <summary>
        /// 
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public static string ToString(this object obj)
        {
            if (string.IsNullOrWhiteSpace(obj.ToString()))
            {
                return "";
            }
            else {
                return obj.ToString();
            }
        }
         
    }
}
